var Koa = require('koa');
var path = require('path');
var app = new Koa();
var views = require("koa-views");


app.use(views(path.join(__dirname, "views"), {
    map: {
        html: 'underscore'
    }
}));

app.use(async function(ctx) {
    await ctx.render('tpl', {
        title: '啊啊啊啊啊啊',
    });
})

app.listen(3000, function() {
    console.log('server running at http://localhost:3000')
})